import java.util.Scanner;

public class 类型转换 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("输入一个数");
        double a= sc.nextDouble();
        int i = (int)a;
        System.out.println(i);
    }
}
/*double类型转换为int类型*/